package com.mode;

public class Wall {
	private static final int ROWS=25;
	private static final int COLS=20;
	private int[][] wall=new int[ROWS][COLS];
	
	public Wall() {
		for(int i=0;i<ROWS;i++){
			for(int j=0;j<COLS;j++){
				wall[i][j]=0;
			}
		}
	}
	
	public void save(Shape shape){
		int[][] arr=shape.getShape();
		int x=shape.getX(),y=shape.getY();
		for(int i=0;i<4;i++){
			for(int j=0;j<4;j++){
				if(arr[i][j]==1){
					wall[y+i][x+j]=arr[i][j];
				}
			}
		}
	}
	
	public int[][] getWall() {
		return wall;
	}
	
}
